# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=breeze-icons
pkgver=5.47.0
pkgrel=0
pkgdesc='Breeze icon themes'
arch="noarch"
url='https://community.kde.org/Frameworks'
license="LGPL-3.0"
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev extra-cmake-modules"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
options="!check" # plasma-browser-integration icon is not available in a scalable directory

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBINARY_ICONS_RESOURCE=ON
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E dupe
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="fbe10d163914ca4d3f3229d7040795e85867aad21cd99f5865493e0c100299012de829acdbda2e3c79efffd7c5085a9f730056eefd23749391f1d689c043f60e  breeze-icons-5.47.0.tar.xz"
